home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
asm32.zip
/
E32.ZIP
/
BOTTOM.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-01-05
|
981b
|
57 lines
; BOTTOM.ASM for E32 - Copyright (C) 1994 Douglas Herr
; all rights reserved
;
; this moves the cursor to the bottom of the file
;
include model.inc
public bottom
extrn locate:near
;extrn home:near
extrn rowcount:near
include dataseg.inc
extrn filesiz:dword ; file size
extrn dirty_bits:byte
extrn left_margin:word
extrn rows:byte
extrn cursor:dword
extrn count_rows:byte, saved_pos:word
extrn count_start:dword
extrn count_bytes:dword
extrn display_mode:byte
@curseg ends
include codeseg.inc
bottom proc near
push ds
pop es
; update count_start
mov eax,cursor
mov count_start,eax
mov left_margin,0 ; set window to start of line
mov esi,filesiz
mov dh,rows
or dirty_bits,1 ; redraw screen
call locate
mov al,display_mode
test al,al
jnz exit ; done if hex display mode
mov saved_pos,-1
mov eax,cursor
sub eax,count_start
mov count_bytes,eax
call rowcount
exit:
ret
bottom endp
@curseg ends
end